import 'package:get/get.dart';

import '../../../../models/TabIconData.dart';

class Bottom2Controller extends GetxController {
  RxInt pageIndex = 0.obs;

  List<TabIconData> tabIconsList = <TabIconData>[
    TabIconData(
      name: '首页',
      imagePath: 'assets/img/home_tab/tab_1.png',
      selectedImagePath: 'assets/img/home_tab/tab_1s.png',
      index: 0,
      isSelected: true,
      animationController: null,
    ),
    TabIconData(
      name: '消息',
      imagePath: 'assets/img/home_tab/tab_2.png',
      selectedImagePath: 'assets/img/home_tab/tab_2s.png',
      index: 1,
      isSelected: false,
      animationController: null,
    ),
    TabIconData(
      name: '动态',
      imagePath: 'assets/img/home_tab/tab_3.png',
      selectedImagePath: 'assets/img/home_tab/tab_3s.png',
      index: 2,
      isSelected: false,
      animationController: null,
    ),
    TabIconData(
      name: '我的',
      imagePath: 'assets/img/home_tab/tab_4.png',
      selectedImagePath: 'assets/img/home_tab/tab_4s.png',
      index: 3,
      isSelected: false,
      animationController: null,
    ),
  ];

  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }

  void setPageIndex(int index) {
    pageIndex.value = index;
    update();
  }
}
